﻿using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using PlatformNetCore.Entity;
using PlatformNetCore.Entity.Models;

namespace PlatformNetCore.IService
{
    public interface IMenuService
    {
        #region 导航栏目
        LayPager<MenuTree> GetMenuPagedList(int pageIndex, int pageSize, Expression<Func<Menu, bool>> predicate);
        List<Menu> GetMenuList(Expression<Func<Menu, bool>> predicate);
        ResultResponse<Menu> GetMenu(string id);
        ResultResponse AddMenu(Menu model);
        ResultResponse UpdateMenu(Menu model);
        ResultResponse UpdateMenuState(List<string> ids, string userName, DataStatus dataStatus);
        IEnumerable<SelectListItem> GetMenuListDLL(bool isSelect = false, bool isAll = false);
        #endregion
    }
}
